change contempt depending on bestValue.

bench: 4562084