Split to functions
complete the split functions