silly log2 rounded the wrong way