type switch on userID