refine transform