using a simple algorithm to set multiple channels