change struct "channel" to public