proper code formatting in models and controllers