added material inheritance