Factors influencing job satisfaction of teachers