updated the error messeag when something goes wrong