corrected some sync errors in parsing