rename integ_mag function file