optimize user controller