update parsing method