formatting
minor bug fix for parameter name. Refactor pipeline.xxxx() common code into helper function