changing data structure