switched unsigned int to long