debugged the commit protocol