removes unnecessary styles