move the debug part after we talked about iteration.