added working error messages
.