adding hook