before selfupdate