updated undefiined indexes