user controller optimization