added some notes in controller