added case statement