Refinement of MgB2 grains and the improvement of flux pinning in MgB2 superconductor through nano-Ni addition