reorganize material structure