added missing delete function