update code based on parser's editor