modify data structure