remove unused map and hashmap