changed thread method