put dup in a subroutine