refactored bitname_db to used level_map