add required semicolons