remove trailing semi-colon