export only getKey function