prepareing the structure