build the structure