refactor to use proper syntax to define services