update data structure