fixes file structure