finializing file structure