minor changes in parser.rb