added more functionality in parser.y