removed unused function from pipeline.py