added exception loops.