removing unwanted variables