forgot to return true in isDuplicateName