setting linear diffusion