remove indexQuery variable