connect steps through input and output