fixed datatype error in channels enum and provided correct typecasts