change service methods to class methods