added check to the list of acceptable queries