split output into two steps