clean up syntactic analysis