this function should just take a `string` (and be passed `channelProperties[1]` above)... it's odd for it to have knowledge of and assume its the 2nd element on the line below...

(reposted after you renamed stuff so it didn't get lost on the pull request)