removes some semicolons