save state
formatting