queries modified to return data to the views with mat_id