refine pipe reponse