links is not defined