new structure and adding hashtable