reverting code before dedupe - epic fail there