change filteredTrailData to currentTrailData