refactoring, removing get_recent_posts method