format the structure