work on query editor