make dup faster