dup for inout