got rid of extra materials.cpp