removing greedy