added default to switch