error message now works