use greedy extended in controller