changed calculation for block size