preprocessing file