you're checking for (every?) specific value of `key` in the `if`s below... why is this test needed?