fix case statement