file re-structuring