updating structure to new format