case doesn't work, but map (mostly) working