add break after switch cases
Fix grammar of switch and declare (->)