- added return $this to type()