changes the file structure