correct file direction