case/default instead of when/else