fix typo
add type of hooks