create_dup and show_dup in one script