a greedy mode