Replacing changed existing variable with new custom variable