added compute_ft_links function