changes to key conversion