1. implementation of verify function.
2. implementation of call function.