modified data filtering algorithm for start/end/route