implemented get posts