greedy strategy added