updating changes to hook