use the previously unsed `nameFound` variable