working on controller error