check commit if successful