add rotate element to greedy strategy