// final ca is calculated