organised the files into directories