change struct syntax and make samples 8 bit