updated calcRigorForIm to calcrigorForIm