shouldn't this be newMaterialID or newMaterialId?