removing commented code in controller.js