check only for planned query