filter location data to only what's necessary