remove surplus semicolons