removes unnecessary defines