added switch statement
dead code