cleaned up getting key name