$this->loop => $loop typo