clean up hook