providing final changes before getting rid of doubles