preparing the structure