removed the line `global $wp_query;` - not used