removes unnecessary semicolons