channel creation  code