refactoring into posts/comments