renamed Segment function to be able to find all_fields, and tested comparer scripts to be sure they work