added 2 new features for segment pairs