slight fix to makePipeline