added $q to the service