better distance in filtering invalid event