changed parameter table from int to uint16_t