changed materials to type