took away exit from controller function