replace a hardcoded version for a variable name