removed unused argument from fetch_post_data method