trying refactoring of service