restructuring logs