add splitList function