cleaning query executor