print loop demo