added filtering for links