change pointer to uint8_t *