removed main_query_canvas variable