stable greedy engine