getting diffusion coefficient