update material