corrected some parsing errors