optimize the pro of hook

Change-Id: Ifa9b65eee09969a64d81864371ff7f00098005b2