added threading again to test on a better computer