Factors affecting student attention