fixing filestruct