added first draft of PIPELINE()