refine Pipe