use parser class in material class