change debug method name and fix for loop.