tweaked verification method slightly