refactored myManageHook