switched file structure