cast to unsigned int, not to int to avoid the warning -- all these