diffusion trigger code added