fix up syntac errors