update datastructures