change channel from struct to class