iterate tasks