preparing all the files