renaming trailsegments to trailSegments to be consistent with camel casing