fix logic of isFarAway