adding more info to error message