uniquify and revert