import log
rewrite listPosts to return a slice