edited main thread