remove extra semicolons