changing structure of files