removes unnecessary edit var