move splitting function, make sure length is odd