before moving to controller