Replacing thisValue with val