extra end in controller