update correct variable entry