adding dependency and pipeline logic/functions
removed nop conditional in pipe function
creating separate function to accomplish task.