added way to count channel size