change a structure of sample