update for nullptr