update for making hook work right