complete the split functions