modify "perfect split" option so you can specify a threshold