program runs infinitely