commit current state