put chan_num in main()