remove for loop because loops block UI