case statement instead