optimize file structure