format rent material;edit addNewMaterial(still need to do)