get the files in right layout