changing all lines of code with unsigned int to uint64