add end info for output