used wrong syntax for checking services