add CASE statement