resetting the query variables