updates for hooks