rest formatting