modifying the service to return data