end second stage commit