added query_arr();