use [WHEN] rather than WHEN.

Uggh, and realign the table