un exporting the shouldQuery method