switch mixin update