remove unnecessary semis