complete code to verify