change bytes/words to uint8_t/uint16_t