proper query eval