refactor print split cells