move the pre_get_posts function to proper spot