adding more logic to blog post