add concat-and-split function