update
solve two axes by setting the min and max on each iteration