removing misplaced line in controller