related links function done