compute duplicate