remove density on the fly duplicates