error correction
add verification() func
add verification output