replace val3 with val2