really fix the bug
import FunPtr instead of function