almost done with query