recursively outline when the total cost is not too high, and adjust outlining parameters