split output function