building a pipeline