before run
Greedy search works