modified the code to support unsigned int. everything works and is ready for submission