update material plugin