for in loop with retry keyword