removes segment io