left some code off the split function