restructuring data