make both the two ivs scripts more consistent with each other