format the strcture