add correct hooks