minor fmt fix for change greedy algorithm