use plug init
Refactoring Loop
Refactoring Loop