revised the file strucutre