modified fullquery.php