debug the error