pre-demo: can loop correctly