lowers code complexity for user controller