output finished with good format