add key to index