add missing ; and other syntactic changes