bugfix: case statement syntax.  Doh!