Oh- the backtracking will work, it just needs a little tweek: Search of the first point that doesnt have the max Y value. Rename this points Pn+1, and everything should work as before. dave