fixing delete to move hash pointers correctly