adding 2 hooks