kill needless semicolons and dead code