improve controller code readability