refactor query processing information