this method of calculating byte length uses less overhead