replace map with hashtablemap