add random element of switching