fitting works with multiple threads