modify for multiple channels