init and final commit