update to hooks