still trying to fix unsigned int in spin method