added default case to switch