add verification function