refine remove_ca method