greedy completed