clean hashmap api