fixed best pipe bug