added is_nearby rule