fix split method