output for data-channel refactored