refactored, but introduced bug caught by test_nexson_diffs.py
bug mentioned in previous commit was bug in test