update for 1D