remove fields in query for temp