added constant deduplication