looping twice and printing penalty