user controller modified for exam ans pattern