added verify method