refactor split_content