improve duplicate-thing