commit main structure