updated instantiation of Uint8Array to use array literals