simple greedy