greedy works