updated the data structures