updated excpetion and errors block