corrected a few parsing errors