get data from mat