some little precautions with unsigned int, removing a warning