almost stable with threads, added background