added functions to save the parsing part