update material class