clean up provider query