created the main structure