implement write_fhb