working on NSGMaterial