working on query evaluation