added debug error message