adds verification logic