for CA APP to call finished function