fixed some of the code still referring to just 8 bits