update datastructures when data is pushed