added channel averaging