model links function