avoid overflowing when picking unit16 values