segment destroy implemented