make replacing in unrolling work