fixed nexted pipes workin like a charm