removes unnecessary ;