fixed to reutrn null when there is no channel data