commit for save curr state