query processing module added