reformating the structure