pipeline with condition