I believe the calls to ``.keys()`` are redundant