made changes to avoid nodes with identical name