update code pass WrongValueException