support to mat_d