added worker thread for correlation calculation