freeing hash structures finished