branching update, look at min and max for plotting