removed redundant code from pipeline.rb