removed reg_l from run func