showing index from the array in channel log