findmodes for SIR added