update EIR function