added query for all posts
fixed indentation