fixing the message of the exceptions