preparing files