refactoring service results