file restructring