code style in controller