added hook to doc