updates for the xy model