stop iterating when things stabilize