add 'val' value for op2 code