Moved retIntTerm to the right location/