slow using pipe