add case statement