cleaning structure of files