commit verify function