don't getChannelData inside nested loop