adding more details to error message