working on the de-duplication