adder main thread