updated $this __invoke calls to $this[] calls