formatting of structs