use uint_leastX_t instead of uintX_t