change to merge geometry instead of passing material