reg dup works