trying to writ own filesplit, but have some problem