output total information properly