added a service method, call it from controller