splitFunction is done