remove empty features, segments