refactor reddit model