add pattern and material