added line in hook.cs