write a spec for #format