fix threading issue - let vs def