added switch accumulator