prepare for datastructure