add missing semicolons and missing break statement on line 107