adding functionality to controller
adding functionality to controller