remove trailing semicolon