modifed used bytes calculations to include block headers