computations for cong.# now working