wiping for switch to scala