added functions to gps code to better filter data