finalizing computation of A