added second version of verify