update hooks