update dataStructure