included helper code in blog_posts