added defaults to switch cases