refactored idKey to idField