Exceptions cleanup
reuse variable
Fix set() call