thread is communicating correctly