changed thread behaviour