small change for more extendible design that uses known values for number of bytes when calculating the correct number of elements