another refactoring(first version for analyze service test)