some issues fixed in cSIR.c