added structure choosing loop