before changing structure