finally the data structure is OK