add a variable value if the variable exists