moved address function call to thread