removing the duplicate copies