edit format at end