remove some unsigned int < 0 comparisons