saving correct file