add materials and keep all the lines the same