finished diffusion part of flowchart