perche quando ti si ferma il loop ?