started heuristic (improvement) function