modified for latest hits query changes