Iterative region fitting
minor tweaking