fixed  using $this-> error