change function copy structure table