changed #getKey to return Object