not using collapse or querytohash