logic deduplication