add "case" statement