create rmName subroutine