few fixes to the complexities
few fixes to the complexities