rm unnecessary usage of 'unsafe' from hashmap