replaced one thread by asynctask