Refactor channels
replace deprecated 'replicate' with 'repeat'