made changes to get room but channel remains undefined