change parameters2 to uint8_t