newer version of query and before optimizely