proper formatting of the code in controllers