change code in displaying error