added endless loop for querylimit