fix case statement syntax