update logic of parser module