fixing ifl and ifg