set semicolons in appropriate place