fixing the example hook for model