update for 2D plots