removed print statements in Segment