beforeupdates