[#49]Material Correction Revised

- Adjusted code to be more optimized.