improvement for spliting

a better spliting method, and the result is perfect.