add a method to works controller and add some specs