Change material creation function