minimize should merge the remaining states to multiple groups rather a single group.