change AsyncTask to Thread