added exception condition