refactoring of redditservice