replace the same variable in a target multiple times