tunings of optimal spin calculation