change the HashMap key and value