changing main data structure