checking for service first