modify destructor for storage object