changed channel to integer