reformated the thread call to call own class instead of callback function