modified materials.cpp