refine pre process