add model hook