file restructing