replace ca is realized as del_ca followed by add_ca