update flat structs