take unsigned int into account