rename query paramter of doQuery to theQuery