links functions