adding hooks