add hook type functions ref_array