create helper functions to connect input to output on pipeline stages