add nii_func for all class