allow the user to cahnge the IRI function on the fly