replace assignments