updating time loop in scripts