works with single pipe.