add key id function to interface