added default material logic