be sure links is not nil