added segment io