correcting input intent and declaring r in nonIECcoh