refactoring
added micropost helper