preparing the pipeline