#753: helper.py, revert logic using 'items()'