removing trailing semicolons which have no effect