added debug error statement