removed old version of query