switch from 8 bits for x,y,z to 12