in prog with timer loop