fixes compile errors from parser. parser currently compiles