1. update materials
2. delete materials