add name duplication problem handling