added parameter channel into callback