changed uint to unsigned int for cross-platform purposes