switching stub methods