fixed case statement with variable