update specs and controller, i need to refactor this code