fixed case statement syntax