step2: place hook function into ima for test