changes before pasting from comparison code