fixed approachIR(int d)