restructure data and wd