adding main structure