Use the property vecs instead of using the val of the elem for material.