init structure and commit done