switched to get_posts method