change 'uint' to 'unsigned int' to ensure broader compatibility