added a default case to prevent some (harmless) warnings