testing screen output with loops