remove the duplicate variables