Rename a static function and refactor a function for debug in container/hashmap