added in material manager code