commit of current state