change to use hashdb_element