added filterDataSourceBySegmentIndex method