changed from thread run to thread start