print after loop not during