function calcBits comment