preparing the file structure