linked error function