adds exists() method