update for scatterplot