use distinct variable names for threads