minor updates to handle empty set of posts