1. add data2matrix