updating structure.