avoid overflowing when picking unit16/32 values