dead.code
more lenient key equality check