use $this->container instead of $container