printing output in-order