added handling of non-element material