built new addHooks